#ifndef _AK_DVR_FILE_H_
#define _AK_DVR_FILE_H_

#include "list.h"
#include "ak_common.h"
#include "ak_dvr_common.h"

struct dvr_file_entry {
	time_t calendar_time;		//calendar time, seconds from 1970-1-1 00:00:00
	unsigned long size;			//file size
	unsigned long total_time;	//record file total time
	char *path;					//including path and file full name
	struct list_head list;		//list head
};

/** 
 * ak_dvr_file_delete_tmp_file - delete record temp file
 * @void
 * return: none
 * notes: delete record temp file if you wish.
 */
void ak_dvr_file_delete_tmp(void);

/** 
 * ak_dvr_create_list - wakeup get history record file thread and fetch list
 * @void
 * return: 0 success, -1 failed
 * notes: call again after SD card reinsert and mounted
 */
int ak_dvr_create_list(void);

#endif
